from django.contrib.auth.models import AbstractUser
from django.db import models


# Create your models here.


class User(AbstractUser):
    sex = models.IntegerField(blank=True, null=True)
    phone = models.CharField(max_length=11, verbose_name="电话号码", unique=True)
    ico = models.CharField(max_length=255, verbose_name="头像地址", unique=type, blank=True)
    age = models.IntegerField(blank=True)
    email = models.EmailField(unique=True)

    class Meta:
        db_table = "user"
        verbose_name = "用户表"
        verbose_name_plural = verbose_name
